<?php
/**
* +---------------------------------------------------------------------------+
* | $Id: userlist.php 37 2005-04-03 05:54:36Z vluther $ 												|
* +---------------------------------------------------------------------------+
* | $Rev: 37 $ 																																|
* +---------------------------------------------------------------------------+
* | Copyright (c) 2002-2004 Linuxpowered, Inc 																|
* +---------------------------------------------------------------------------+
* | Author: Vidyut Luther 																										|
* +---------------------------------------------------------------------------+
*
* $URL: http://svn.linuxpowered.com/binder/admin/userlist.php $
**/


$section = "ADMIN";
$title = "List of Users "; 
 
require_once '../global.inc.php'; 
require_once INCLUDE_PATH . '/USER.class.php'; 



$objUser = new User();

$userlevel = $_SESSION['userlevel']; 
$curuser = $_SESSION['USERID']; 

if($userlevel != 0) {
	$searchval = $curuser ; 
}
$arrUsers = $objUser->UserList($searchval);  


$email = $objUser->username;
$password = $objUser->password; 
$firstname = $objUser->firstname; 
$lastname = $objUser->lastname ; 



$tpl->assign("curuser",$curuser); 

$tpl->assign("users",$arrUsers); 
$tpl->assign("title","List of Users"); 
$tpl->assign("email",$email); 
$tpl->assign("password",$password); 
$tpl->assign("domains",$domains); 
$tpl->assign("mode","modify"); 

$tpl->display('userselect.html'); 
$tpl->display('userlist.html'); 
?>
